cnc right triangle calculations g code programming g code software triangle calculations cnc software pitch circle g code programing speed and feed cnc machine